package com.example.test.springdemo.service.impl;

import com.example.test.springdemo.mapper.AdminUserRoleMapper;
import com.example.test.springdemo.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：吉金武
 * @ClassName UserRoleServiceImpl
 * @date ：2022/3/9 - 22:47
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description:
 **/
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private AdminUserRoleMapper adminUserRoleMapper;

    @Override
    public int insertUserRole(Long userId, Long...roleId) {
        return adminUserRoleMapper.insertUserRole(userId,roleId);
    }
}

